package cc.wlizhi.sbmp.controller;

import cc.wlizhi.sbmp.entity.SysUser;
import cc.wlizhi.sbmp.mapper.SysUserMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class SampleController {
    @Autowired
    SysUserMapper sysUserMapper;

    @GetMapping("/listUser")
    public List<SysUser> listUser() {
        return sysUserMapper.selectList(Wrappers.lambdaQuery());
    }
}
